<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>YAM</title>
    <th:block th:include="import :: links"></th:block>
</head>
<body>
<div class="container" style="padding-top: 10%;">
    <form class="form-horizontal col-md-6 col-md-offset-3 well" action="/login" method="post">
        <h2 class="form-signin-heading">请登录</h2>
        <div class="form-group">
            <label for="userName" class="col-sm-2 control-label">用户</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="userName" name="username" placeholder="Email"/>
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" id="password" name="password" placeholder="Password"/>
                <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
                <button type="submit" class="btn btn-lg btn-primary btn-block">登录</button>
            </div>
        </div>
    </form>
</div> <!-- /container -->
<footer id="footer"></footer>
<th:block th:include="import :: impJS"></th:block>
</body>
</html>